<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<div>
		<form action="LoginServlet" method="post" class="login_form"
			name="login_form">
			<div class="login">:: ĐĂNG NHẬP</div>
			<table width="100%">
				<tr align="center" valign="top">
					<td>
						<ul>
							<li>
								<label for="name">Tên Đăng Nhập :</label> 
								<input type="text" name="username" id="username" placeholder="tên đăng nhập" required />
							</li>
							<li>
								<label for="matkhau">Mật Khẩu :</label> 
								<input type="password" name="password" id="password" placeholder="mật khẩu" required />
							</li>
							<li>
								<button class="submit" type="submit">Đăng Nhập</button>
							</li>
							<%
								String er = (String)request.getAttribute("error");
								if(er!=null){%>
							<li style="color: red; margin-left: 150px;">
										<%=er%> 
							</li>
							<%}%>
						</ul>
					</td>
				</tr>
			</table>
		</form>
	</div>
</body>
</html>